package com.velthoven.umbraco4android;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class ContentActivity extends Activity {
	
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        UmbracoBaseService service = new UmbracoBaseService(Preferences.getServerUrl(getBaseContext()));
        
        boolean authenticated = service.AuthenticateMember(Preferences.getUserName(getBaseContext()), Preferences.getPassword(getBaseContext()));
        
        TextView textview = new TextView(this);
		if (authenticated)
		{
			textview.setText("Logged in to Umbraco");
		}
        setContentView(textview);
    }
}